#include "form1.h"
#include "ui_form1.h"

Form1::Form1(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form1)
{
    ui->setupUi(this);
    init_animation();
    this->setWindowFlags(Qt::FramelessWindowHint| Qt::WindowStaysOnTopHint);
}

Form1::~Form1()
{
    delete ui;
}

void Form1::init_animation()
{
    animation.init_win(this);
    animation.init_timer();
    animation.addInfo(ui->lineEdit);
    animation.addInfo(ui->pushButton);
}

void Form1::show_animation(int x, int y, double rx1,double ry1)
{
    animation.init_place(x,y,rx1,ry1);
    animation.start_show();
}

void Form1::close_animation()
{
    animation.close_show();
}
